package gov.learn.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TbEoBasicInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbEoBasicInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andVisitDateIsNull() {
            addCriterion("visit_date is null");
            return (Criteria) this;
        }

        public Criteria andVisitDateIsNotNull() {
            addCriterion("visit_date is not null");
            return (Criteria) this;
        }

        public Criteria andVisitDateEqualTo(Date value) {
            addCriterionForJDBCDate("visit_date =", value, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("visit_date <>", value, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateGreaterThan(Date value) {
            addCriterionForJDBCDate("visit_date >", value, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("visit_date >=", value, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateLessThan(Date value) {
            addCriterionForJDBCDate("visit_date <", value, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("visit_date <=", value, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateIn(List<Date> values) {
            addCriterionForJDBCDate("visit_date in", values, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("visit_date not in", values, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("visit_date between", value1, value2, "visitDate");
            return (Criteria) this;
        }

        public Criteria andVisitDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("visit_date not between", value1, value2, "visitDate");
            return (Criteria) this;
        }

        public Criteria andTargetTypeIsNull() {
            addCriterion("target_type is null");
            return (Criteria) this;
        }

        public Criteria andTargetTypeIsNotNull() {
            addCriterion("target_type is not null");
            return (Criteria) this;
        }

        public Criteria andTargetTypeEqualTo(String value) {
            addCriterion("target_type =", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeNotEqualTo(String value) {
            addCriterion("target_type <>", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeGreaterThan(String value) {
            addCriterion("target_type >", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeGreaterThanOrEqualTo(String value) {
            addCriterion("target_type >=", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeLessThan(String value) {
            addCriterion("target_type <", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeLessThanOrEqualTo(String value) {
            addCriterion("target_type <=", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeLike(String value) {
            addCriterion("target_type like", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeNotLike(String value) {
            addCriterion("target_type not like", value, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeIn(List<String> values) {
            addCriterion("target_type in", values, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeNotIn(List<String> values) {
            addCriterion("target_type not in", values, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeBetween(String value1, String value2) {
            addCriterion("target_type between", value1, value2, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetTypeNotBetween(String value1, String value2) {
            addCriterion("target_type not between", value1, value2, "targetType");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsIsNull() {
            addCriterion("target_details is null");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsIsNotNull() {
            addCriterion("target_details is not null");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsEqualTo(String value) {
            addCriterion("target_details =", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsNotEqualTo(String value) {
            addCriterion("target_details <>", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsGreaterThan(String value) {
            addCriterion("target_details >", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsGreaterThanOrEqualTo(String value) {
            addCriterion("target_details >=", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsLessThan(String value) {
            addCriterion("target_details <", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsLessThanOrEqualTo(String value) {
            addCriterion("target_details <=", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsLike(String value) {
            addCriterion("target_details like", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsNotLike(String value) {
            addCriterion("target_details not like", value, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsIn(List<String> values) {
            addCriterion("target_details in", values, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsNotIn(List<String> values) {
            addCriterion("target_details not in", values, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsBetween(String value1, String value2) {
            addCriterion("target_details between", value1, value2, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andTargetDetailsNotBetween(String value1, String value2) {
            addCriterion("target_details not between", value1, value2, "targetDetails");
            return (Criteria) this;
        }

        public Criteria andVisitLocationIsNull() {
            addCriterion("visit_location is null");
            return (Criteria) this;
        }

        public Criteria andVisitLocationIsNotNull() {
            addCriterion("visit_location is not null");
            return (Criteria) this;
        }

        public Criteria andVisitLocationEqualTo(String value) {
            addCriterion("visit_location =", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationNotEqualTo(String value) {
            addCriterion("visit_location <>", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationGreaterThan(String value) {
            addCriterion("visit_location >", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationGreaterThanOrEqualTo(String value) {
            addCriterion("visit_location >=", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationLessThan(String value) {
            addCriterion("visit_location <", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationLessThanOrEqualTo(String value) {
            addCriterion("visit_location <=", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationLike(String value) {
            addCriterion("visit_location like", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationNotLike(String value) {
            addCriterion("visit_location not like", value, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationIn(List<String> values) {
            addCriterion("visit_location in", values, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationNotIn(List<String> values) {
            addCriterion("visit_location not in", values, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationBetween(String value1, String value2) {
            addCriterion("visit_location between", value1, value2, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andVisitLocationNotBetween(String value1, String value2) {
            addCriterion("visit_location not between", value1, value2, "visitLocation");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomIsNull() {
            addCriterion("is_need_meeting_room is null");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomIsNotNull() {
            addCriterion("is_need_meeting_room is not null");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomEqualTo(String value) {
            addCriterion("is_need_meeting_room =", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomNotEqualTo(String value) {
            addCriterion("is_need_meeting_room <>", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomGreaterThan(String value) {
            addCriterion("is_need_meeting_room >", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomGreaterThanOrEqualTo(String value) {
            addCriterion("is_need_meeting_room >=", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomLessThan(String value) {
            addCriterion("is_need_meeting_room <", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomLessThanOrEqualTo(String value) {
            addCriterion("is_need_meeting_room <=", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomLike(String value) {
            addCriterion("is_need_meeting_room like", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomNotLike(String value) {
            addCriterion("is_need_meeting_room not like", value, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomIn(List<String> values) {
            addCriterion("is_need_meeting_room in", values, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomNotIn(List<String> values) {
            addCriterion("is_need_meeting_room not in", values, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomBetween(String value1, String value2) {
            addCriterion("is_need_meeting_room between", value1, value2, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedMeetingRoomNotBetween(String value1, String value2) {
            addCriterion("is_need_meeting_room not between", value1, value2, "isNeedMeetingRoom");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayIsNull() {
            addCriterion("is_need_display is null");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayIsNotNull() {
            addCriterion("is_need_display is not null");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayEqualTo(String value) {
            addCriterion("is_need_display =", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayNotEqualTo(String value) {
            addCriterion("is_need_display <>", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayGreaterThan(String value) {
            addCriterion("is_need_display >", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayGreaterThanOrEqualTo(String value) {
            addCriterion("is_need_display >=", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayLessThan(String value) {
            addCriterion("is_need_display <", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayLessThanOrEqualTo(String value) {
            addCriterion("is_need_display <=", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayLike(String value) {
            addCriterion("is_need_display like", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayNotLike(String value) {
            addCriterion("is_need_display not like", value, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayIn(List<String> values) {
            addCriterion("is_need_display in", values, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayNotIn(List<String> values) {
            addCriterion("is_need_display not in", values, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayBetween(String value1, String value2) {
            addCriterion("is_need_display between", value1, value2, "isNeedDisplay");
            return (Criteria) this;
        }

        public Criteria andIsNeedDisplayNotBetween(String value1, String value2) {
            addCriterion("is_need_display not between", value1, value2, "isNeedDisplay");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}